package comgame.entities.EquipmentEnum;

import java.util.ArrayList;

public enum ChestplateType implements EquipmentType {
    CHESTPLATE_1("普通胸甲", 1,10,-1,0.01),
    CHESTPLATE_2("铁胸甲", 2,15,-2,0.02),
    CHESTPLATE_3("金胸甲", 3,20,-3,0.03),
    CHESTPLATE_4("钻石胸甲", 4,25,-4,0.04),
    CHESTPLATE_GHOST("幽灵胸甲", 8, 23, -2, 0.06),
    CHESTPLATE_FESTIVE_WINGS("喜庆之翼", 20, 10, 5, 0.10),
    CHESTPLATE_SPACEKING("空间之主胸甲", 15, 30, -3, 0.12);

    private final String displayName;
    private final int attack;
    private final int defense;
    private final int speed;
    private final double critRate;

    ChestplateType(String displayName,int attack,  int defense, int speed, double critRate) {
        this.displayName = displayName;
        this.defense = defense;
        this.speed = speed;
        this.attack = attack;
        this.critRate = critRate;
    }

    @Override
    public String getTypeCategory() {
        return "CHESTPLATE";
    }

    @Override
    public String getName() {
        return displayName;
    }

    @Override
    public ArrayList<Integer> getBaseValue() {
        return new ArrayList<Integer>(){{
            add(attack);
            add(defense);
            add(speed);
        }};
    }
    public int getAttack() {
        return attack;
    }
    public int getSpeed() {
        return speed;
    }
    public int getDefense() {
        return defense;
    }
    public double getCritRate() {
        return critRate;
    }
}